{include file="general/header.tpl"}
<div id="path">
	You are here: <a href="/index.php">Home</a> &raquo; <a href="index.php">Administration</a>
</div>
<div id="main">
	<h1>Account Management</h1>
	<div class="float">&nbsp;&raquo; <a href="profile.php">Personal Settings</a></div>
	<div class="clear"></div>
	<div class="float">&nbsp;&raquo; <a href="url_add.php">Create URL</a></div>
	<div class="float">&nbsp;&raquo; <a href="url.php">Manage My URLs</a></div>
	<div class="float">&nbsp;&raquo; <a href="assoc.php">Recover My Account-less URLs</a></div>
	<div class="clear"></div>
	<div class="float">&nbsp;&raquo; <a href="url_stat.php">View My URL Stats</a></div>
	<div class="float">&nbsp;&raquo; <a href="url_referer.php">View My URL Referers</a></div>
	<div class="clear"></div>
	<div class="float">&nbsp;&raquo; <a href="url_set_add.php">Create URL Set</a></div>
	<div class="float">&nbsp;&raquo; <a href="url_set.php">Manage My URL Sets</a></div>
	<div class="clear"></div>
	<div class="float">&nbsp;&raquo; <a href="url_set_stat.php">View My URL Set Stats</a></div>
	<div class="float">&nbsp;&raquo; <a href="url_set_referer.php">View My URL Set Referers</a></div>
	<div class="clear"></div>
	{if #MultiDomainSupport# || $user_authenticated->isSuperAdmin()}
		<div class="float">&nbsp;&raquo; <a href="domain_add.php">Add Domain</a></div>
		<div class="float">&nbsp;&raquo; <a href="domain.php">Manage My Domains</a></div>
		<div class="clear"></div>
	{/if}
	<div class="float">&nbsp;&raquo; <a href="news_comment.php">Manage My News Comments</a></div>
	<div class="float">&nbsp;&raquo; <a href="url_comment.php">Manage My Published URLs Comments</a></div>
	<div class="clear"></div>
	<div class="float">
		&nbsp;&raquo; Customize Web Service:
		<!-- old classes: no-block-overflow api_key -->
		<div class="qt-indent">
			API Key: {$api_key|upper}
		</div>
		<script type="text/javascript">
			var ToolbarButton = {ldelim}
				domain : '{#RewriteHost#}',
				urlset : '',
				getName : function() {ldelim}
					var urlset_str = '';
					if (this.urlset != '') {ldelim} urlset_str = ' in ' + this.urlset; {rdelim}
					return 'Shorten ' + urlset_str + ' with ' + this.domain + '!';
				{rdelim}
			{rdelim};
		</script>
		<div class="qt-indent longer-form-field">
			<label>Choose domain:</label>
			<select name="domain_name" onchange="changeAPIURLParams(this, 'domain');">
				<option value="{#RewriteHost#}">{#RewriteHost#} (default)</option>
				{if #MultiDomainSupport#}
					{foreach $domains as $domain}
						<option value="{$domain.domain}">{$domain.domain}</option>
					{/foreach}
				{/if}
			</select>
		</div>
		<div class="qt-indent longer-form-field">
			<label>Choose URL set:</label>
			<select name="url_set_container" onchange="changeAPIURLParams(this, 'urlset');">
				<option value="">None</option>
				{foreach $url_sets as $url_set}
					<option value="{$url_set.group_name}">{$url_set.group_name}</option>
				{/foreach}
			</select>
		</div>
		<div class="qt-indent longer-form-field">
			<label>Drag to browser toolbar:</label>
			<a id="shortcut" href="javascript:if(confirm('Are you sure you want to create a tiny URL for this page?\n\n' + location.href)){ldelim}var d=document,w=window,f='{get_scheme()}://{#WWWHost#}/api.php',l=d.location,e=encodeURIComponent,p='?action=create&amp;apikey='+e('{$api_key|upper}')+'&amp;domain='+e('{#RewriteHost#}')+'&amp;urlset='+e('')+'&amp;link='+e(l.href)+'&amp;title='+e(d.title),u=f+p;a=function(){ldelim}if(!w.open(u,'t','width=600,height=300,directories=no,location=no,menubar=no,resizable=yes,scrollbars=no,status=no,toolbar=no,dependent=yes'))l.href=u;{rdelim};if(/Firefox/.test(navigator.userAgent)){ldelim}setTimeout('a()',0);{rdelim}else{ldelim}a();{rdelim}{rdelim}void(0);" onclick="alert('Drag to browser toolbar or add to favorites'); return false;"><script type="text/javascript">document.write(ToolbarButton.getName());</script></a>
		</div><br />
		<div class="qt-indent no-block-overflow">
			API URL: <span id="api_url">{get_scheme()}://{#WWWHost#}/api.php<wbr />?action=create<wbr />&amp;apikey=<b>{$api_key|upper}</b><wbr />&amp;domain=<b>{#RewriteHost#}</b><wbr />&amp;urlset=<wbr />&amp;link=<b>[ENCODED&nbsp;URL]</b><wbr />&amp;title=<b>[ENCODED&nbsp;TITLE]</b></span>
		</div>
	</div>
	<div class="clear"></div>
	{if $user_authenticated->isSuperAdmin()}
		<h1>Site Management</h1>
		<div class="float">&nbsp;&raquo; <a href="url_list.php">Manage All URLs</a></div>
		<div class="float">&nbsp;&raquo; <a href="assoc_list.php">Manage All Account-less URLs</a></div>
		<div class="clear"></div>
		<div class="float">&nbsp;&raquo; <a href="url_stat_list.php">View All URL Stats</a></div>
		<div class="float">&nbsp;&raquo; <a href="url_referer_list.php">View All URL Referers</a></div>
		<div class="clear"></div>
		<div class="float">&nbsp;&raquo; <a href="url_set_list.php">Manage All URL Sets</a></div>
		<div class="clear"></div>
		<div class="float">&nbsp;&raquo; <a href="url_set_stat_list.php">View All URL Set Stats</a></div>
		<div class="float">&nbsp;&raquo; <a href="url_set_referer_list.php">View All URL Set Referers</a></div>
		<div class="clear"></div>
		<div class="float">&nbsp;&raquo; <a href="domain_list.php">Manage All Domains</a></div>
		<div class="clear"></div>
		<div class="float">&nbsp;&raquo; <a href="news_add.php">Create News</a></div>
		<div class="float">&nbsp;&raquo; <a href="news.php">Manage My News</a></div>
		<div class="float">&nbsp;&raquo; <a href="news_list.php">Manage All News</a></div>
		<div class="clear"></div>
		<div class="float">&nbsp;&raquo; <a href="publish_add.php">Publish URL</a></div>
		<div class="float">&nbsp;&raquo; <a href="publish.php">Manage My Published URLs</a></div>
		<div class="float">&nbsp;&raquo; <a href="publish_list.php">Manage All Published URLs</a></div>
		<div class="clear"></div>
		<div class="float">&nbsp;&raquo; <a href="news_comment_list.php">Manage All News Comments</a></div>
		<div class="float">&nbsp;&raquo; <a href="url_comment_list.php">Manage All Published URLs Comments</a></div>
		<div class="clear"></div>
		<div class="float">&nbsp;&raquo; <a href="user_list.php">Manage All Users</a></div>
		<div class="clear"></div>
	{elseif $user_authenticated->isAdmin()}
		<h1>Site Management</h1>
		<div class="float">&nbsp;&raquo; <a href="assoc_list.php">Manage All Account-less URLs</a></div>
		<div class="clear"></div>
		<div class="float">&nbsp;&raquo; <a href="news_add.php">Create News</a></div>
		<div class="float">&nbsp;&raquo; <a href="news.php">Manage My News</a></div>
		<div class="clear"></div>
		<div class="float">&nbsp;&raquo; <a href="publish_add.php">Publish URL</a></div>
		<div class="float">&nbsp;&raquo; <a href="publish.php">Manage My Published URLs</a></div>
		<div class="clear"></div>
		<div class="float">&nbsp;&raquo; <a href="news_comment_list.php">Manage All News Comments</a></div>
		<div class="float">&nbsp;&raquo; <a href="url_comment_list.php">Manage All Published URLs Comments</a></div>
		<div class="clear"></div>
	{/if}
</div>
{include file="general/left.tpl"}
{include file="general/footer.tpl"}